package org.yangjie.service;

import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;
import org.springframework.stereotype.Service;
import org.yangjie.entity.User;

@Service
public class UserService {
	
	public User getByUsername(String username) {
		User user = new User();
		user.setId(1);
		user.setUsername(username);
		user.setPassword(new BCryptPasswordEncoder().encode("1"));
		return user;
	}
	
}
